package admin;

import java.io.InputStream;
import java.util.Properties;

public class Getconfig {
	private String filename="../config.property";
	public String getParaValue(String ParaName) {
		Properties prop=new Properties();
		try {
			InputStream is=getClass().getResourceAsStream(filename);
			prop.load(is);
			if(is!=null) is.close();
		} catch (Exception e) {
			// TODO: handle exception
			return "error!";
		}
		return prop.getProperty(ParaName);
		
	}
}
